The RotateToMe Observer script is a script that can be added onto GameObjects that you would want to rotate if a player uses the ‘Rotate To Me' option within the drawers.

The RotateToMeObserver script requires the Gameboard GameObject to be present. Find the Gameboard menu at the top of the unity header and click "Add SDK" to add the Gameboard GameObject to your project. If you do not have the Gameboard menu options, see Gameboard SDK Access

Step-by-Step

First, select all the GameObjects you would like to rotate towards the user when they select Rotate To Me from the drawer. The most common use case here would probably be the camera, so the camera will rotate the whole view towards the player's drawer.

Next, find the Gameboard menu at the top of the unity header and click "Add RotateToMe Observer" to add the RotateToMeObserver to your GameObject(s).

Step-by-Step

This will add a the script to the gameobjects. Now that GameObject will rotate when the Rotate To Me button is pressed!

You will notice the RotateToMe Observer Script has a few customizable options.

Step-by-Step

Property Descriptions